@import "./var";
@import "./colors.scss";

$--color-primary: $blue;
$--color-success: $green;
$--color-warning: $orange;
$--color-danger: $red;
$--color-text-primary: $color-text-primary;
$--color-text-regular: $color-text-regular;
$--border-color-base: $border-color-base;
$--border-color-light: $border-color-light;
$--border-color-lighter: $border-color-lighter;
$--border-color-extra-light: $border-color-extra-light;

$--menu-item-font-color: $white;
$--menu-background-color: #000033;
$--menu-item-hover-fill: darken($--menu-background-color, 5%);

$--font-path: "~element-ui/lib/theme-chalk/fonts";

@import "~element-ui/packages/theme-chalk/src/index";

 // to reset element-ui default css
.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  position: relative;
  left: 0;
  margin: 0 auto;
  transform: none;
}

//element ui upload
.upload-container {
  .el-upload {
    width: 100%;
    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}
// 下拉控件
.el-select {
  width: 100%;
}
// 日期控件
.el-date-editor.el-input, .el-date-editor.el-input__inner {
  width: 100%;
}

// 关于 readonly 和 disabled 颜色过于暗色
.el-radio__input.is-disabled + span.el-radio__label,
.el-checkbox__input.is-disabled + span.el-checkbox__label,
.el-input.is-disabled .el-input__inner{
  color: $colorReadonly;
}

.el-scrollbar__bar {
  transition: opacity .8s linear;
}

.el-time-spinner__wrapper .el-scrollbar__wrap {
  box-sizing: content-box;
}

.ui-dark-mode {
  .el-backtop {
    background-color: rgba(0,0,0,.5);
  }
}
